<?php
//echo $scriptmce;
?>
<div class="span10">
          <div class="row-fluid">
            <div class="span12 box">
                <div class="box-head">
                    <h3><i class="icon-white icon-file"></i> Edit Article</h3>
                </div>
                <div class="box-content">
                 <div class="content-inner">
                   <?php echo form_error('judul', '<div class="alert alert-info"><button type="button" class="close" data-dismiss="alert"><i class="icon-fullscreen"></i></button>', '</div>'); ?>
                   <?php echo form_error('berita', '<div class="alert alert-info"><button type="button" class="close" data-dismiss="alert"><i class="icon-fullscreen"></i></button>', '</div>'); ?>
                <fieldset class="gllpLatlonPicker">
                    
                    <!--Latitude : <input type="text" name="lati" class="gllpLatitude" value="-7.787534"/> -->
                    <!--Longitude : <input type="text" name="longi" class="gllpLongitude" value="110.368258"/> -->
                    
                    <form class="form-horizontal" method="post" action="<?php echo base_url();?>admin/info/update" enctype="multipart/form-data">
                    
                     <?php foreach($data as $r): ?>
                           <div class="control-group">
	      						<label class="control-label">Judul</label>
                                <div class="controls">
                                <input type="hidden" value="<?php echo $r['id_info'];?>" name="id" />
                                
                           				<input type="text" placeholder="Judul Berita" name="judul" value="<?php echo $r['judul'];?>" class="input-xxlarge"> 
                                </div>
                          </div>
                           
                           <div class="control-group">
	      						<label class="control-label">Isi Berita</label>
                                <div class="controls">
                           			<textarea id="textarea" rows="20" class="span8" name="berita"><?php echo $r['isi'];?></textarea>
                           		</div>
                           </div>
                           
                            <div class="control-group">
	      						<label class="control-label">&nbsp;</label>
                                <div class="controls">
                           			<input type="submit" class="btn btn-primary" value="Edit" />
                                    <input type="reset" class="btn btn-danger" value="Reset" />
                           		</div>
                           </div>
                                <!--<button type="submit" class="btn btn-primary" onClick="ste.submit();">Publish &#43;</button> -->
                         <?php endforeach; ?>
                        </form>
                </fieldset>
              </div>
            </div>
          </div> <!-- end row -->
          
        </div>
</div>